 <div class="UsewHead" style="position: relative">
     <div class="gohome" style="position: absolute;top: 25px;z-index:999999999999;"><a href="./index.php?i=<?php echo $uniacid?>&c=entry&do=index&m=dashen_zaoqizhuanqian"><img src="../addons/dashen_zaoqizhuanqian/images/h11.ico" /></a></div>
    <div class="UsewHeadTitle"></div>
    <div class="UserHeadShare"><img src="{php echo preg_replace('/\/0$/', '/96', stripslashes($fans['avatar']));}" onerror="this.src='resource/images/heading.jpg'"><em>{$nickname}</em></div>
    <div class="both"></div>
    <div class="UserMoneyCount">
      <ul>
        <li>
          <h1>{$user_info['money']}</h1>
          <h3>余额(元)</h3>
        </li>
        <li>
          <h1>{php echo $yajin['yajin_money']==''?'0.00':$yajin['yajin_money']}</h1>
          <h3>挑战金(元)</h3>
        </li>
        <li>
          <h1>{$total_day}</h1>
          <h3>成功打卡(天)</h3>
        </li>
      </ul>
      <div class="both"></div>
    </div>
  </div>
 <script src="../addons/dashen_zaoqizhuanqian/js/jquery-1.9.1.min.js?Hz2" type="text/javascript"></script>
 <script src="../addons/dashen_zaoqizhuanqian/js/layer/layer.js"></script>
  <div class="UserPrompt">
  <a class="linka" href="./index.php?i=<?php echo $uniacid?>&c=entry&do=Signrecord&m=dashen_zaoqizhuanqian">我的战绩</a>
  <a class="linka" href="./index.php?i=<?php echo $uniacid?>&c=entry&do=Payrecord&m=dashen_zaoqizhuanqian">我的挑战金</a>
  <a class="linka" href="./index.php?i=<?php echo $uniacid?>&c=entry&do=Bonusrecord&m=dashen_zaoqizhuanqian">我的奖励金</a>
  {if $this->zstate==0}
      <div  onclick="tixian()" class="AppLink Bg">提现</div>
  {else}
      {if $this->paychecked ==0 ||  $this->paychecked ==1}
      <div onclick="zjiaru()" style=" margin-left: 80%;border-radius: 5%;color: white;text-align: center;background-color: orangered">提现</div>
      {else if  $this->paychecked ==2}
      <div onclick="bjiaru()" style=" margin-left: 80%;border-radius: 5%;color: white;text-align: center;background-color: orangered">提现</div>
      {else}
      <div onclick="ajiaru()" style=" margin-left: 80%;border-radius: 5%;color: white;text-align: center;background-color: orangered">提现</div>
      {/if}
  {/if}
  </div>
 <script>
     var txdemo="{php echo $this->txdemo}";
     var txbank="{php echo $this->txbank}";
     var txbanks=txbank.split(",");
     function tixian() {
         location.href="./index.php?i=<?php echo $uniacid?>&c=entry&do=tixian&m=dashen_zaoqizhuanqian"
     }
     function bjiaru() {
         var option='';
         for(j = 0; j < txbanks.length; j++) {
             option += '<option value ="">选择银行</option><option value ="'+txbanks[j]+'">'+txbanks[j]+'</option>'
         }
         layer.closeAll();
         layer.open({
             type: 1,
             title: "余额提现",
             anim:'up',
             shadeClose: true, //开启遮罩关闭
             area: ['300px', '300px'], //宽高
             time:'',
             content:'<div style="width:90%;margin-left:5%;height:140px;color:#666;">' +
             '<div style="margin-bottom:10px;">' +
             '<input type="text" placeholder="请输入姓名" id="bname" style="font-size:15px;border-radius:5px;border:1px solid #ff8500;width:97%;height:35px;line-height:35px;padding-left:3%">' +
             '<input type="text" placeholder="请输入银行卡" id="bnumber" style="font-size:15px;border-radius:5px;border:1px solid #ff8500;width:97%;height:35px;line-height:35px;margin-top: 10px;padding-left:3%">' +
             '<select id="bank" style="font-size:15px;border-radius:5px;border:1px solid #ff8500;height:35px;line-height:35px;width:100%;margin-top: 10px;">'+option+'</select>' +
             '<input type="text" placeholder="请输入开户行" id="kbank" style="font-size:15px;border-radius:5px;border:1px solid #ff8500;width:97%;height:35px;line-height:35px;margin-top: 10px;padding-left:3%">' +
             '</div>' +
             '<div style="margin-top:20px;"><div onclick="jiaru2()"  style="border-radius:5px;font-size:15px;width:60%;margin-left:20%;border:none;text-align:center;background-color:#ff8500;color:white;height:35px;line-height:35px;">确认</div></div></div>'
         });

     }

     function zjiaru() {
         layer.closeAll();
         layer.open({
             type: 1,
             title: "余额提现",
             anim:'up',
             shadeClose: true, //开启遮罩关闭
             area: ['300px', '200px'], //宽高
             time:'',
             content:'<div style="width:90%;margin-left:5%;height:140px;color:#666;">' +
             '<div style="margin-bottom:10px;">' +
             '<input type="text" placeholder="请输入姓名" id="name" style="font-size:15px;border-radius:5px;border:1px solid #ff8500;width:97%;height:35px;line-height:35px;padding-left:3%">' +
             '<input type="text" placeholder="请输入支付宝账号" id="number" style="font-size:15px;border-radius:5px;border:1px solid #ff8500;width:97%;height:35px;line-height:35px;margin-top: 10px;padding-left:3%">' +
             '</div>' +
             '<div style="margin-top:20px;"><div onclick="jiaru1()"  style="border-radius:5px;font-size:15px;width:60%;margin-left:20%;border:none;text-align:center;background-color:#ff8500;color:white;height:35px;line-height:35px;">确认</div></div></div>'
         });

     }
     function ajiaru() {
         layer.open({
             type: 1,
             title: "余额提现",
             anim:'up',
             shadeClose: true, //开启遮罩关闭
             area: ['350px', '100px'], //宽高
             time:'',
             content: '<div style="margin-top:10px;">' +
             '<div onclick="zjiaru()"  style="border-radius:5px;font-size:15px;width:40%;margin-left:6%;text-align:center;border:1px solid #ff8500;color:black;height:40px;line-height:40px;float: left">支付宝</div>' +
             '<div onclick="bjiaru()"  style="border-radius:5px;font-size:15px;width:40%;margin-left:5%;text-align:center;border:1px solid #ff8500;color:black;height:40px;line-height:40px;float: left">银行卡</div>'+
             '</div>'
         });

     }

     function jiaru1(){
         number=$('#number').val();
         name=$('#name').val();
         if(number==''||name==''){
             layer.msg('姓名和账户不能为空',{time:2000});
             return false;
         }
         layer.closeAll();
         location.href="./index.php?i=<?php echo $uniacid?>&c=entry&do=tixian&zhanghao="+number+"&name="+name+"&m=dashen_zaoqizhuanqian"
     }
     function jiaru2(){
         number=$('#bnumber').val();
         name=$('#bname').val();
         bank=$("#bank").find("option:selected").val();
         kbank=$('#kbank').val();
         if(number==''||name=='' || bank=='' || kbank==''){
             layer.msg('有未填写选项',{time:2000});
             return false;
         }
         layer.closeAll();
         location.href="./index.php?i=<?php echo $uniacid?>&c=entry&do=tixian&zhanghao="+number+"&name="+name+"&bank="+bank+"&kbank="+kbank+"&m=dashen_zaoqizhuanqian"
     }
 </script>